package flag

import (
	"server/global"
	"server/model/databases"
)

func SQL() error {
	return global.DB.Set("gorm:table_options", "ENGINE=InnoDB").AutoMigrate(
		&databases.Advertisement{},
		&databases.ArticleCategory{},
		&databases.ArticleLike{},
		&databases.ArticleTag{},
		&databases.Comment{},
		&databases.Feedback{},
		&databases.FooterLink{},
		&databases.FriendLink{},
		&databases.Image{},
		&databases.JwtBlacklist{},
		&databases.Login{},
		&databases.User{},
	)
}
